import request from '@/utils/request'

// 查询用户奖励金提现记录列表
export function listUserwithdraw(query) {
  return request({
    url: '/order/userwithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询用户奖励金提现记录详细
export function getUserwithdraw(id) {
  return request({
    url: '/order/userwithdraw/' + id,
    method: 'get'
  })
}

// 新增用户奖励金提现记录
export function addUserwithdraw(data) {
  return request({
    url: '/order/userwithdraw',
    method: 'post',
    data: data
  })
}

// 修改用户奖励金提现记录
export function updateUserwithdraw(data) {
  return request({
    url: '/order/userwithdraw',
    method: 'put',
    data: data
  })
}

// 删除用户奖励金提现记录
export function delUserwithdraw(id) {
  return request({
    url: '/order/userwithdraw/' + id,
    method: 'delete'
  })
}
